package com.laoye.service;

import com.laoye.bean.User;
import com.laoye.dto.*;
import com.laoye.util.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

public interface UserService {

    void editUser(UserEditDTO userInfo);  //修改用户信息

    String findUsername(Integer id);  //根据id查找用户账号

    void register(RegisterDTO registerDTO);  //用户注册

    User login(LoginDTO loginDTO);  //用户登录

    void updatePassword(PwdEditDTO pwdEditDTO); //修改密码

    void logout(); //用户登出

    Page<UserPageDTO> getUsersPage(String keyword, Integer pageNum, Integer pageSize);  //获取用户列表

    void updateAvatar(String file, Integer id);


    String getAvatarUrl(Integer id);

    User getUserById();

    void sendEmailCode(String email);
}
